<template>
	<div class="a_canvas">
		
	</div>
</template>

<script>
	import html2canvas from "html2canvas";
	export default {
		name: 'Home',
		components: {
			// bg
		},
		methods:{
			poster(){
				html2canvas(this.$refs.home).then(function(canvas){
					// canvas.toDataUrl将canvas转为base64位
					console.log(canvas.toDataUrl("image/jpg",1))
					document.body.appendChild(canvas)
				})
			}
		}
	}
</script>

<style>
</style>
